﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>留学系统后台</title>
  
    <link href="<%=Url.Content("~/Content/lib/ligerUI/skins/Silvery/css/ligerui-common.css") %>"rel="stylesheet" type="text/css" />
    <link href="<%=Url.Content("~/Content/lib/ligerUI/skins/Silvery/css/ligerui-layout.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Url.Content("~/Content/lib/ligerUI/skins/Silvery/css/ligerui-tab.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Url.Content("~/Content/lib/ligerUI/skins/Silvery/css/ligerui-tree.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Url.Content("~/Content/lib/ligerUI/skins/Silvery/css/ligerui-menu.css")%>" rel="stylesheet" type="text/css" />
    
     <script src="<%=Url.Content("~/Content/lib/jquery/jquery-1.5.2.min.js")%>" type="text/javascript"></script>    
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerDrag.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerResizable.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerMenu.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerLayout.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerTab.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerAccordion.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerTree.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerWindow.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/lib/ligerUI/js/plugins/ligerDialog.js")%>" type="text/javascript"></script>
    <script type="text/javascript">
        var tab = null;
        var accordion = null;
        var tree = null;
        $(function() {
            $("#pageloading").height($(window).height());

            //布局
            $("#layout1").ligerLayout({ leftWidth: 190, height: '100%', onHeightChanged: f_heightChanged });

            var height = $(".l-layout-center").height();

            //Tab
            tab = $("#framecenter").ligerTab({ height: height });

            //面板
            accordion = $("#accordion1").ligerAccordion({ height: height - 24, speed: null });

            $(".l-link").hover(function() {
                $(this).addClass("l-link-over");
            }, function() {
                $(this).removeClass("l-link-over");
            });
            //树
            tree = $("#tree1").ligerTree({
                checkbox: false,
                nodeWidth: 120,
                attribute: ['nodename', 'url'],
                onSelect: function(node) {
                    if (!node.data.url) return;
                    var tabid = $(node.target).attr("tabid");
                    if (!tabid) {
                        tabid = new Date().getTime();
                        $(node.target).attr("tabid", tabid)
                    }
                    if ($(">ul >li", tab.tab.links).length > 10) {
                        var currentTabid = $("li.l-selected", tab.tab.links).attr("tabid"); //当前选择的tabid
                        if (currentTabid == "home") return;
                        tab.overrideTabItem(currentTabid, { tabid: tabid, url: node.data.url, text: node.data.text });
                        return;
                    }
                    f_addTab(tabid, node.data.text, node.data.url);
                }
            });

            $("#pageloading").hide();
        });

        function f_heightChanged(options) {
            if (tab)
                tab.addHeight(options.diff);
            if (accordion && options.middleHeight - 24 > 0)
                accordion.setHeight(options.middleHeight - 24);
        }
        function f_addTab(tabid, text, url) {
            tab.addTabItem({ tabid: tabid, text: text, url: url });
            
        } 
             
            
     </script> 
    <style type="text/css"> 
        body{ padding:0px; margin:0;   overflow:hidden;}  
        .l-link{ display:block; height:26px; line-height:26px; padding-left:10px; text-decoration:underline; color:#333;}
        .l-link2{text-decoration:underline; color:white;}
        .l-layout-top{background:#102A49; color:White;}
        .l-layout-bottom{ background:#E5EDEF; text-align:center;}
        #pageloading{position:absolute; left:0px; top:0px; background:white url('loading.gif') no-repeat center; width:100%; height:100%; height:700px; z-index:99999;}
        .l-link{ display:block; line-height:22px; height:22px; padding-left:20px;border:1px solid white; margin:4px;}
        .l-link-over{ background:#FFEEAC; border:1px solid #DB9F00;}
     </style>
</head>

    <body style="padding:0px;">  
<div id="pageloading"></div>
  <div id="layout1" style="width:100%">
        <div position="top" style="background:#102A49; color:White; ">
          <table width = "100%">
                <tr>
                    <td >
                     <div style="margin-top:10px; margin-left:10px">
                         留学系统管理后台
                    </div>
                    </td>
                    <td align = "right" >
                      <div style="margin-top:10px; margin-right:50px">
                      <%=Html.ActionLink("退出","LogOut")%>                        
                    </div>
                    </td>
                </tr>
            </table>  
           
              
        </div>
        <div position="left"  title="留学系统菜单" id="accordion1"> 
                     <div title="留学系统管理菜单" class="l-scroll">
                         <ul id="tree1" style="margin-top:3px;">
                         
                            <li isexpand="false"><span>导师基本信息管理</span><ul>                                                                     
                                <li url="<%=Url.Content("~/TutorInfo.mvc/Index")%>">
                                <span>
                                教师信息管理
                                
                                </span>
                                </li>                                  
                            </ul>
                            </li>   
                            
                             <li isexpand="false"><span>订单信息管理</span><ul>
                                <li url="<%=Url.Content("~/Orders.mvc/Index")%>"><span>订单信息</span></li>                    
                            </ul>
                            </li>  
                            
                            <li isexpand="false"><span>站内信管理</span><ul>
                                <li url="<%=Url.Content("~/Orders.mvc/Index")%>"><span>查看站内信</span></li>                    
                            </ul>
                            </li>                   
                         </ul>
                    </div>                  
        </div>
        <div position="center" id="framecenter"> 
            <div tabid="home" title="导师主页" style="height:300px" >
                <iframe frameborder="0" name="home" src="welcome.htm"></iframe>
            </div> 
        </div> 
        <div position="bottom">
            Copyright © 2011 www.xxxxx.com
        </div>
    </div> 
        <div style="display:none">  </div>
</body>
</html>
